package de.tum.in.far.threedui.superbrickball.gui;

import javax.media.j3d.Appearance;
import javax.media.j3d.TransformGroup;

import com.sun.j3d.utils.geometry.Box;
import com.sun.j3d.utils.geometry.Primitive;

import de.tum.in.far.threedui.general.TransformableObject;

public class CubeObject extends TransformableObject {

	public CubeObject(float x, float y, float z, Appearance app) {
		Box box = new Box(x, y, z, Primitive.GENERATE_NORMALS +

		Primitive.GENERATE_TEXTURE_COORDS, app);
		transGroup.addChild(box);
		transGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
		transGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
		transGroup.setCapability(TransformGroup.ALLOW_CHILDREN_EXTEND);
	}

}
